availableTeamFor

  • function
 

Filters the teams list to exclude teams that are already assigned to a Game.

viewmodel.availableTeamFor(name, round)

Filters the teams list to exclude teams that are already assigned to a Game.

Parameters

  1. name {String}

    "home" or "away".

  2. round {String}

    A round name from roundNames.

Returns

{List | Array}

An array of Team models.